// 指标库 列表页和详情页
import * as RouteNames from '@/router/consts';
import { store } from '@/store';

const DefaultCrumb = {
  // 指标库列表页面面包屑
  default: (to: any) => {
    store.commit('breadcrumb/setPathname', to.path);
    store.commit('breadcrumb/setRawPath', to);
    store.commit('breadcrumb/setFullPath', to.fullPath);
    store.commit('breadcrumb/setName', to.name);
    store.commit('breadcrumb/setShowReturn', false); //是否显示返回
    // 返回
    store.commit('breadcrumb/setAddonActions', []);
  }
};
export default DefaultCrumb;
